﻿namespace IService.Base
{
    /// <summary>
    /// 接口返回帮助类
    /// </summary>
    public interface IResultHelperService
    {
        RM_ApiResult BuildSuccess(object data);

        RM_ApiResult BuildSuccess();

        RM_ApiResult BuildError(string errorCode, object data);

        RM_ApiResult BuildError(string errorCode);

        RM_ApiResult BuildError();

        RM_ApiResult BuildActionSuccess();

        RM_ApiResult BuildActionSuccess(object data);

        RM_ApiResult BuildActionError(string errorCode, object data);

        RM_ApiResult BuildActionError(string errorCode);

        RM_ApiResult BuildActionError();

        void SetRedisService(IRedisService redis);
    }
}